import pytest,time
from selenium.webdriver.common.by import By
from selenium import webdriver
@pytest.fixture
def driver():
    driver=webdriver.Edge()
    driver.get('http://10.59.9.12:7001/')
    driver.maximize_window()
    time.sleep(3)
    yield driver

def test_a3mall_login(driver):
    driver.find_element(By.XPATH,'/html/body/div[1]/div/div[2]/ul/li[1]/a').click()
    driver.find_element(By.NAME,'username').send_keys('13012558376')
    driver.find_element(By.NAME, 'password').send_keys('123456Aa')
    time.sleep(8)
    driver.find_element(By.CLASS_NAME,'finish-btn').click()
    time.sleep(2)
    driver.find_element(By.XPATH,'/html/body/div[3]/div[2]/ul/li[1]/a').click()
    time.sleep(5)
